package com.hcyy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hcyy.entity.Leibie;
import com.hcyy.entity.Product;

public interface ProductDao {
	public List<Leibie> findLeibie4Index();
	public List<Product> findProduct4Index(@Param("dwbh")String dwbh,@Param("tejia")Integer tejia,@Param("sjid")Integer sjid,@Param("khlb")Integer khlb);
	public List<Product> findProductByLeibie(@Param("dwbh")String dwbh,@Param("flbid")Integer flbid,@Param("sjid")Integer sjid,@Param("khlb")Integer khlb,@Param("offset")Integer offset,@Param("size")Integer size);
	public List<Product> findAllProducts(@Param("dwbh")String dwbh,@Param("sjid")Integer sjid,@Param("khlb")Integer khlb);
	public Product findProductById(@Param("spid")String spid,@Param("sjid")Integer sjid);
	public List<Product> findProductBySearch(@Param("search")String search,@Param("dwbh")String dwbh,@Param("sjid")Integer sjid,@Param("khlb")Integer khlb);
	public List<Product> findProductPage(@Param("offset")Integer offset,@Param("size")Integer size,@Param("dwbh")String dwbh,@Param("tejia")Integer tejia,@Param("sjid")Integer sjid,@Param("khlb")Integer khlb);
}
